import java.util.Scanner;




public class One {
    public static void main(String[] args) {
       Scanner in=new Scanner(System.in);
       int a=in.nextInt(),b=in.nextInt();
        System.out.println(a*b/gcd(a,b));
    }

    private static int gcd(int a, int b) {
        if(b==0){
            return a;
        }
        return gcd(b,a%b);
    }
}
